﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InventoryQuery.aspx.cs" Inherits="WMS6.Web.Inventory.InventoryQuery" meta:resourcekey="Page" %>

<%@ Register src="../UserControls/MultipleSelectControl.ascx" tagname="MultipleSelectControl" tagprefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>InventoryQuery</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />
    <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script> 
    <script src="../Js/util.js" type="text/javascript"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script> 
    <script src="../Js/Verification.js" type="text/javascript"></script>   
    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>
    <script type="text/javascript">
       
        //初始化页面
        window.onload = function(){
            initQueryPage();
        }
        
        function showAction()
		{	
			var pos = getElementPos("btnAction");	
			document.getElementById("actionDiv").style.top = pos.y+17;
			document.getElementById("actionDiv").style.left = pos.x;  			
			document.getElementById("hiddenFlag").value = '1';
		}
		
       function hiddenDiv()
		{
			var flag = document.getElementById("hiddenFlag").value
			if(flag == "1")
			{
				document.getElementById("actionDiv").style.display = "block";
				document.getElementById("hiddenFlag").value = '0';
			}
			else 
			{
				document.getElementById("actionDiv").style.display = "none";
			}
		}
		
		function setValue(condition)
		{
		    document.getElementById("hdnValue").value = condition;
		    //_doPostBack("hdnValue_ValueChanged","");
		    document.getElementById("btnAction2").click();
		}
        
        //弹出窗口选择货品分类
        function selectSkuClassID()
        {
            var rtnValue = popModalWindow('../Configuration/SkuClassQuery.aspx?action=txtSkuClassID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtSkuClassID").focus();
                document.getElementById("txtSkuClassID").value = rtnValue;
            }
        }
        
        //弹出窗口选择货品
        function selectSKU()
        {
            var rtnValue = popModalWindow('../Configuration/SKUQuery.aspx?action=txtSku','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtSku").focus();
                document.getElementById("txtSku").value = rtnValue;
            }
        }
        
        //弹出窗口选择货主
        function selectOwner()
        {
            var rtnValue = popModalWindow('../Configuration/OwnerQuery.aspx?action=txtOwnerID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtOwnerID").focus();
                document.getElementById("txtOwnerID").value = rtnValue;
            }
        }
        
        //弹出窗口选择供应商
        function selectVendor()
        {
            var rtnValue = popModalWindow('../Configuration/VendorQuery.aspx?action=txtVendorID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtVendorID").focus();
                document.getElementById("txtVendorID").value = rtnValue;
            }
        }
        
        //窗口大小改变时触发的事件
//        window.onresize = function()
//	    {
//	        autoResizeQueryDiv("div_query");
//	    }
    </script>
</head>
<body>
    <form id="F5010" runat="server">
    <div>
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom"><asp:Label ID="lblOwner" runat="server" CssClass="label_header" 
                            Text="库存查询" meta:resourcekey="lblOwner"></asp:Label></td>
                    <td><input id="btnAction" type="button" value="<%$Resources:ButtonResource,btnAction%>" runat="server" class="button" onclick="showAction();return false;" /></td>
                    <td>
                        <input id="btnClear" type="reset" value="<%$Resources:ButtonResource,btnClear%>" runat="server" class="button" />
                    </td>
                </tr>
            </table>
        </div>
        <div>
            <asp:Label ID="lblMsg" runat="server" CssClass="label_message" 
                meta:resourcekey="lblMsg"></asp:Label>
        </div> 
         <div id="div_menu">
            <div style="float: left; width: 8px;">
                <div class="tabL" id="divL1"></div>
            </div>
            <div style="float:left;" class="tabLabelCont tabCur" onclick="setTab('one',1,2)" id="divM1">
                <asp:Label ID="one1" CssClass="hover" runat="server" 
                    meta:resourcekey="one1">基本条件</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR" id="divR1"></div>
            </div>
            
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL2"></div>
            </div>
            <div style="float:left;" class="tabLabelCont tabCur_1" onclick="setTab('one',2,2);" id="divM2">
                <asp:Label ID="one2" CssClass="navigationlabel" runat="server" 
                    meta:resourcekey="one2">&nbsp;批次属性&nbsp;</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR2"></div>
            </div>
         </div>
        <div id="div_query" style="height:100%;">
            <div id="con_one_1" style="display:block;">
                <table width="360" cellpadding="0" cellspacing="0" >
                    <tr>
                        <td>
                            <asp:Label ID="lblOwnerID" runat="server" CssClass="label" Text="货主代码" 
                                meta:resourcekey="lblOwnerID"></asp:Label>
                        </td>
                        <td>
                        &nbsp;
                        </td>
                        <td>
                        &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtOwnerID" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtOwnerID"></asp:TextBox><img src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectOwner();"/>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlOwnerID" runat="server" CssClass="selectbox" 
                                meta:resourcekey="ddlOwnerID">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    
                    <tr>
                        <td>
                            <asp:Label ID="lblSku" runat="server" CssClass="label" Text="货品代码" 
                                meta:resourcekey="lblSku"></asp:Label>
                        </td>
                        <td>
                        &nbsp;
                        </td>
                        <td>
                        &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtSku" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtSku"></asp:TextBox><img src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectSKU();"/>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlSku" runat="server" CssClass="selectbox" 
                                meta:resourcekey="ddlSku">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    
                    <tr>
                        <td>
                            <asp:Label ID="lblVendorID" runat="server" CssClass="label" Text="供应商代码" 
                                meta:resourcekey="lblVendorID"></asp:Label>
                        </td>
                        <td>
                        &nbsp;
                        </td>
                        <td>
                        &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtVendorID" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtVendorID"></asp:TextBox><img src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectVendor();"/>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlVendorID" runat="server" CssClass="selectbox" 
                                meta:resourcekey="ddlVendorID">
                            </asp:DropDownList>
                        </td>
                        <td></td>
                    </tr>
                    
                    <tr>
                        <td>
                            <asp:Label ID="lblSkuClassID" runat="server" CssClass="label" Text="货品分类代码" 
                                meta:resourcekey="lblSkuClassID"></asp:Label>
                        </td>
                        <td>
                        &nbsp;
                        </td>
                        <td>
                        &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtSkuClassID" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtSkuClassID"></asp:TextBox><img src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectSkuClassID();"/>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlSkuClassIDOper" runat="server" CssClass="selectbox" 
                                meta:resourcekey="ddlSkuClassIDOper">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    
                    <tr>
                        <td>
                            <asp:Label ID="lblSkuProperty" runat="server" CssClass="label" Text="货品属性" 
                                meta:resourcekey="lblSkuProperty"></asp:Label>
                        </td>
                        <td>
                        &nbsp;
                        </td>
                        <td>
                        &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <%--<asp:DropDownList ID="ddlSkuProperty" runat="server" CssClass="mediumselectbox" 
                                meta:resourcekey="ddlSkuProperty">
                            </asp:DropDownList>--%>
                            <uc1:MultipleSelectControl ID="MSCSkuProperty" runat="server" /> 
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlSkuPropertyOper" runat="server" CssClass="selectbox" 
                                meta:resourcekey="ddlSkuPropertyOper">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    
                    <tr>
                        <td>
                            <asp:Label ID="lblSkuDescr" runat="server" CssClass="label" Text="货品描述" 
                                meta:resourcekey="lblSkuDescr"></asp:Label>
                        </td>
                        <td>
                        &nbsp;
                        </td>
                        <td>
                        &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtSkuDescr" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtSkuDescr"></asp:TextBox>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlSkuDescrOper" runat="server" CssClass="selectbox" 
                                meta:resourcekey="ddlSkuDescrOper">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    
                    <tr>
                        <td>
                            <asp:Label ID="lblLotAttributeID" runat="server" CssClass="label" Text="批次号" 
                                meta:resourcekey="lblLotAttributeID"></asp:Label>
                        </td>
                        <td>
                        &nbsp;
                        </td>
                        <td>
                        &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtLotAttributeID" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtLotAttributeID"></asp:TextBox>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlLotAttributeID" runat="server" CssClass="selectbox" 
                                meta:resourcekey="ddlLotAttributeID">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lblExternalLot" runat="server" CssClass="label" Text="外部批号" 
                                meta:resourcekey="lblExternalLot"></asp:Label>
                        </td>
                        <td>
                        &nbsp;
                        </td>
                        <td>
                        &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtExternalLot" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtExternalLot"></asp:TextBox>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlExternalLot" runat="server" CssClass="selectbox" 
                                meta:resourcekey="ddlExternalLot">
                            </asp:DropDownList>
                        </td>
                        <td></td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lblLocation" runat="server" CssClass="label" Text="货位" 
                                meta:resourcekey="lblLocation"></asp:Label>
                        </td>
                        <td>
                        &nbsp;
                        </td>
                        <td>
                        &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtLoaction" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtLoaction"></asp:TextBox>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlLoaction" runat="server" CssClass="selectbox" 
                                meta:resourcekey="ddlLoaction">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    
                    <tr>
                        <td>
                            <asp:Label ID="lblLpn" runat="server" CssClass="label" Text="LPN" 
                                meta:resourcekey="lblLpn"></asp:Label>
                        </td>
                        <td>
                        &nbsp;
                        </td>
                        <td>
                        &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtLpn" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtLpn"></asp:TextBox>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlLpn" runat="server" CssClass="selectbox" 
                                meta:resourcekey="ddlLpn">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    
                    <tr>
                        <td>
                            <asp:Label ID="lblQty" runat="server" CssClass="label" Text="数量" 
                                meta:resourcekey="lblQty"></asp:Label>
                        </td>
                        <td>
                        &nbsp;
                        </td>
                        <td>
                        &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtQty" runat="server" CssClass="textbox" 
                                onblur="Javascript:dataVer._Is123(this,'lblMsg');" 
                                meta:resourcekey="txtQty"></asp:TextBox>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlQty" runat="server" CssClass="selectbox" 
                                meta:resourcekey="ddlQty">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:CheckBox ID="cbxHistory" runat="server" Text="显示历史数据" 
                                meta:resourcekey="cbxHistory"  />                           
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    
                </table>
            </div>
            
            <div id="con_one_2" style="display:none;">
                <table width="580px" cellpadding="0" cellspacing="0" >
                    <tr>
                        <td style="width:180px">
                            <asp:Label ID="lblLotAttribute1" runat="server" CssClass="label" Text="批次属性01" 
                                meta:resourcekey="lblLotAttribute1"></asp:Label>
                        </td>
                        <td style="width:30px">
                            &nbsp;
                        </td>
                        <td style="width:160px">
                            &nbsp;
                        </td>
                        <td style="width:200px"></td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtLotAttribute01" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtLotAttribute01"></asp:TextBox>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlLotAttribute01" runat="server" CssClass="selectbox" 
                                meta:resourcekey="ddlLotAttribute01">
                            </asp:DropDownList>
                        </td>
                        <td></td>
                    </tr>
                    
                    <tr>
                        <td>
                            <asp:Label ID="lblLotAttribute02" runat="server" CssClass="label" Text="批次属性02" 
                                meta:resourcekey="lblLotAttribute02"></asp:Label>
                        </td>
                        <td>
                        &nbsp;
                        </td>
                        <td>
                        &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtLotAttribute02" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtLotAttribute02"></asp:TextBox>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlLotAttribute02" runat="server" CssClass="selectbox" 
                                meta:resourcekey="ddlLotAttribute02">
                            </asp:DropDownList>
                        </td>
                        <td></td>
                    </tr>
                    
                    <tr>
                        <td>
                            <asp:Label ID="lblLotAttribute03" runat="server" CssClass="label" Text="批次属性03" 
                                meta:resourcekey="lblLotAttribute03"></asp:Label>
                        </td>
                        <td>
                        &nbsp;
                        </td>
                        <td>
                        &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtLotAttribute03" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtLotAttribute03"></asp:TextBox>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlLotAttribute03" runat="server" CssClass="selectbox" 
                                meta:resourcekey="ddlLotAttribute03">
                            </asp:DropDownList>
                        </td>
                        <td></td>
                    </tr>
                    
                    <tr>
                        <td>
                            <asp:Label ID="lblLotAttribute04" runat="server" CssClass="label" Text="批次属性04" 
                                meta:resourcekey="lblLotAttribute04"></asp:Label>
                        </td>
                        <td>
                        &nbsp;
                        </td>
                        <td>
                        &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtLotAttribute04" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtLotAttribute04"></asp:TextBox>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlLotAttribute04" runat="server" CssClass="selectbox" 
                                meta:resourcekey="ddlLotAttribute04">
                            </asp:DropDownList>
                        </td>
                        <td></td>
                    </tr>
                    
                    <tr>
                        <td>
                            <asp:Label ID="lblLotAttribute05" runat="server" CssClass="label" Text="批次属性05" 
                                meta:resourcekey="lblLotAttribute05"></asp:Label>
                        </td>
                        <td>
                        &nbsp;
                        </td>
                        <td>
                        &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtLotAttribute05" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtLotAttribute05"></asp:TextBox>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlLotAttribute05" runat="server" CssClass="selectbox" 
                                meta:resourcekey="ddlLotAttribute05">
                            </asp:DropDownList>
                        </td>
                        <td></td>
                    </tr>
                    
                    <tr>
                        <td>
                            <asp:Label ID="lblLotAttribute06" runat="server" CssClass="label" Text="批次属性06" 
                                meta:resourcekey="lblLotAttribute06"></asp:Label>
                        </td>
                        <td>
                        &nbsp;
                        </td>
                        <td>
                        &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtLotAttribute06" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtLotAttribute06"></asp:TextBox>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlLotAttribute06" runat="server" CssClass="selectbox" 
                                meta:resourcekey="ddlLotAttribute06">
                            </asp:DropDownList>
                        </td>
                        <td></td>
                    </tr>
                    
                    <tr>
                        <td>
                            <asp:Label ID="lblLotAttribute07" runat="server" CssClass="label" Text="批次属性07" 
                                meta:resourcekey="lblLotAttribute07"></asp:Label>
                        </td>
                        <td>
                        &nbsp;
                        </td>
                        <td>
                        &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtLotAttribute07" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtLotAttribute07"></asp:TextBox>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlLotAttribute07" runat="server" CssClass="selectbox" 
                                meta:resourcekey="ddlLotAttribute07">
                            </asp:DropDownList>
                        </td>
                        <td></td>
                    </tr>
                    
                    <tr>
                        <td>
                            <asp:Label ID="lblLotAttribute08" runat="server" CssClass="label" Text="批次属性08" 
                                meta:resourcekey="lblLotAttribute08"></asp:Label>
                        </td>
                        <td>
                        &nbsp;
                        </td>
                        <td>
                        &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtLotAttribute08" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtLotAttribute08"></asp:TextBox>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlLotAttribute08" runat="server" CssClass="selectbox" 
                                meta:resourcekey="ddlLotAttribute08">
                            </asp:DropDownList>
                        </td>
                        <td></td>
                    </tr>
                    
                    <tr>
                        <td>
                            <asp:Label ID="lblLotAttribute09" runat="server" CssClass="label" Text="批次属性09" 
                                meta:resourcekey="lblLotAttribute09"></asp:Label>
                        </td>
                        <td>
                        &nbsp;
                        </td>
                        <td>
                        &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtLotAttribute09" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtLotAttribute09"></asp:TextBox>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlLotAttribute09" runat="server" CssClass="selectbox" 
                                meta:resourcekey="ddlLotAttribute09">
                            </asp:DropDownList>
                        </td>
                        <td></td>
                    </tr>
                    
                    <tr>
                        <td>
                            <asp:Label ID="lblLotAttribute10" runat="server" CssClass="label" Text="批次属性10" 
                                meta:resourcekey="lblLotAttribute10"></asp:Label>
                        </td>
                        <td>
                        &nbsp;
                        </td>
                        <td>
                        &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtLotAttribute10" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtLotAttribute10"></asp:TextBox>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlLotAttribute10" runat="server" CssClass="selectbox" 
                                meta:resourcekey="ddlLotAttribute10">
                            </asp:DropDownList>
                        </td>
                        <td></td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lblProductDate" runat="server" CssClass="label" Text="生产日期" 
                                meta:resourcekey="lblProductDate"></asp:Label>
                        </td>
                        <td>
                        &nbsp;
                        </td>
                        <td>
                        &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtProductDate" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtProductDate"></asp:TextBox><img  src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,txtProductDate)" />

                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlProductDate" runat="server" CssClass="selectbox" 
                                onchange="showAnotherDate(this.options[this.options.selectedIndex].value,div1,img2);" 
                                meta:resourcekey="ddlProductDate">
                            </asp:DropDownList>
                        </td>
                        <td>
                            <div style="display:none;" id="div1">
                                <asp:TextBox ID="txtProductDate2" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtProductDate2"></asp:TextBox><img src="../Images/calendar.gif" class="img" alt="请选择日期" id="img2" runat="server" onclick="setday(this,txtProductDate2)"/>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lblExpiryDate" runat="server" CssClass="label" Text="失效日期" 
                                meta:resourcekey="lblExpiryDate"></asp:Label>
                        </td>
                        <td>
                        &nbsp;
                        </td>
                        <td>
                        &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtExpiryDate" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtExpiryDate"></asp:TextBox><img  src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,txtExpiryDate)" />
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlExpiryDate" runat="server" CssClass="selectbox" 
                                onchange="showAnotherDate(this.options[this.options.selectedIndex].value,div2,img3);" 
                                meta:resourcekey="ddlExpiryDate">
                            </asp:DropDownList>
                        </td>
                        <td>
                            <div style="display:none;" id="div2">
                                <asp:TextBox ID="txtExpiryDate2" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtExpiryDate2"></asp:TextBox><img src="../Images/calendar.gif" class="img" alt="请选择日期" id="img3" runat="server" onclick="setday(this,txtExpiryDate2)"/>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lblReceiptDate" runat="server" CssClass="label" Text="入库日期" 
                                meta:resourcekey="lblReceiptDate"></asp:Label>
                        </td>
                        <td>
                        &nbsp;
                        </td>
                        <td>
                        &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtReceiptDate" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtReceiptDate"></asp:TextBox><img  src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,txtReceiptDate)" />
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlReceiptDate" runat="server" CssClass="selectbox" 
                                onchange="showAnotherDate(this.options[this.options.selectedIndex].value,div3,img4);" 
                                meta:resourcekey="ddlReceiptDate">
                            </asp:DropDownList>
                        </td>
                        <td>
                            <div style="display:none;" id="div3">
                                <asp:TextBox ID="txtReceiptDate2" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtReceiptDate2"></asp:TextBox><img src="../Images/calendar.gif" class="img" alt="请选择日期" id="img4" runat="server" onclick="setday(this,txtReceiptDate2)"/>
                            </div>
                        </td>
                    </tr>
               </table>
            </div>
        </div>
    
        <input type="hidden" id="hiddenFlag" />     
         <div id="actionDiv" style="background-color:#FFFFFF; position:absolute; border:solid 1px #ACA899;  width:110px;margin-top:3px; display:none;">
            <p style=" cursor:hand; border-bottom:solid 1px #ACA899; height:18px; font-size:12px; padding-left:10px; padding-top:4px;" onMouseMove="this.style.backgroundColor = '#F0F0F0';" onMouseOut="this.style.backgroundColor = '#FFFFFF'" onClick="setValue(1);"><%=GetLocalResourceObject("1")%></p>
            <p style=" cursor:hand; border-bottom:solid 1px #ACA899; height:18px; font-size:12px; padding-left:10px; padding-top:4px;" onMouseMove="this.style.backgroundColor = '#F0F0F0';" onMouseOut="this.style.backgroundColor = '#FFFFFF'" onClick="setValue(2);"><%=GetLocalResourceObject("2")%></p>
            <p style=" cursor:hand; border-bottom:solid 1px #ACA899; height:18px; font-size:12px; padding-left:10px; padding-top:4px;" onMouseMove="this.style.backgroundColor = '#F0F0F0';" onMouseOut="this.style.backgroundColor = '#FFFFFF'" onClick="setValue(3);"><%=GetLocalResourceObject("3")%></p>
            <p style=" cursor:hand; border-bottom:solid 1px #ACA899; height:18px; font-size:12px; padding-left:10px; padding-top:4px;" onMouseMove="this.style.backgroundColor = '#F0F0F0';" onMouseOut="this.style.backgroundColor = '#FFFFFF'" onClick="setValue(4);"><%=GetLocalResourceObject("4")%></p>
            <p style=" cursor:hand; border-bottom:solid 1px #ACA899; height:18px; font-size:12px; padding-left:10px; padding-top:4px;" onMouseMove="this.style.backgroundColor = '#F0F0F0';" onMouseOut="this.style.backgroundColor = '#FFFFFF'" onClick="setValue(5);"><%=GetLocalResourceObject("5")%></p>
            <p style=" cursor:hand; border-bottom:solid 1px #ACA899; height:18px; font-size:12px; padding-left:10px; padding-top:4px;" onMouseMove="this.style.backgroundColor = '#F0F0F0';" onMouseOut="this.style.backgroundColor = '#FFFFFF'" onClick="setValue(6);"><%=GetLocalResourceObject("6")%></p>
            <p style=" cursor:hand; border-bottom:solid 1px #ACA899; height:18px; font-size:12px; padding-left:10px; padding-top:4px;" onMouseMove="this.style.backgroundColor = '#F0F0F0';" onMouseOut="this.style.backgroundColor = '#FFFFFF'" onClick="setValue(7);"><%=GetLocalResourceObject("7")%></p>
            <p style=" cursor:hand; border-bottom:solid 1px #ACA899; height:18px; font-size:12px; padding-left:10px; padding-top:4px;" onMouseMove="this.style.backgroundColor = '#F0F0F0';" onMouseOut="this.style.backgroundColor = '#FFFFFF'" onClick="setValue(8);"><%=GetLocalResourceObject("8")%></p>
            <p style=" cursor:hand; height:18px; font-size:12px; padding-left:10px; padding-top:4px;" onMouseMove="this.style.backgroundColor = '#F0F0F0';" onMouseOut="this.style.backgroundColor = '#FFFFFF'" onClick="setValue(9);"><%=GetLocalResourceObject("9")%></p>
        </div>
        
    </div>
    <input type="hidden" id="hdnValue" runat="server" />
    <input type="hidden" id="hdnDataFormat" runat="server" />
    <input type="hidden" id="hdncalendarFlag" runat="server" />
    <asp:Button ID="btnAction2" runat="server" Style="display: none;" OnClick="btnAction2_Click"
        meta:resourcekey="btnAction2" />
    <link href="../Js/JqueryPlugin/jquery.multiselect.css" rel="stylesheet" type="text/css" />
    <link href="../Js/JqueryPlugin/jquery.ui.css" rel="stylesheet" type="text/css" />

    <script src="../Js/JqueryPlugin/jquery.multiselect.min.js" type="text/javascript"></script>

    </form>
</body>
</html>



 <script language="javascript" type="text/javascript" event="onclick" for="document">
		<!--
			hiddenDiv();
		    hiddenCalendarDiv();
		//-->
</script>